package com.springboot.study.tests.designpattern.decorator1;

/**
 * @Author: guodong
 * @Date: 2021/5/6 10:37
 * @Version: 1.0
 * @Description: 装饰者类
 */
public class RegistForThirdService implements SiginService {

    private SiginService siginService;

    public RegistForThirdService(SiginService siginService){
        this.siginService = siginService;
    }

    public ResultMsg registForQQ(String openId){
        return siginService.regist(openId,null);
    }

    @Override
    public ResultMsg regist(String username, String password) {
        return siginService.regist(username,password);
    }

}
